home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 25 / Cream of the Crop 25.iso / program / tsetguid.zip / TEA / SET / SAMPLE / INPUTFOR.JAV < prev    next >
Text File  |  1997-02-27  |  2KB  |  53 lines

  1. /*
  2.  * Copyright (c) 1996-1997, InetSoft Technology Corp, All Rights Reserved.
  3.  *
  4.  * The software and information contained herein are copyrighted and 
  5.  * proprietary to InetSoft Technology Corp. This software is furnished 
  6.  * pursuant to a written license agreement and may be used, copied, 
  7.  * transmitted, and stored only in accordance with the terms of such 
  8.  * license and with the inclusion of the above copyright notice. Please 
  9.  * refer to the file "COPYRIGHT" for further copyright and licensing 
  10.  * information. This software and information or any other copies 
  11.  * thereof may not be provided or otherwise made available to any 
  12.  * other person. 
  13.  */
  14. package tea.set.sample;
  15.  
  16. import tea.set.*;
  17. import java.awt.*;
  18. import java.net.*;
  19. import java.applet.*;
  20.  
  21. /**
  22.  * This is a demo applet to show using tea.set.Form to build an input
  23.  * form interface.
  24.  *
  25.  * @see Form
  26.  * @see TextGrid
  27.  * @see Grid
  28.  * @version 1.3, 01/31/97
  29.  * @author InetSoft Technology Corp
  30.  */
  31. public class InputForm extends Applet {
  32.    public void init() {
  33.       setLayout(new BorderLayout());
  34.       
  35.       form = new Form();
  36.       add("Center", new Effect3D(form, Effect3D.RAISED_BORDER));
  37.       
  38.       String[] fields = {"Last Name", "First Name", "Age", "Sex", "Education",
  39.              "Experience", "Level"};
  40.       int[] fwidth = {15, 15, 3, 3, 15, 6, 15};
  41.       form.setStyle(Form.TEXT_FIELD);
  42.       form.setLayoutPolicy(Form.ROW_MAJOR);
  43.       form.setRowColCount(2);
  44.       form.setField(fields);
  45.       form.setColumns(fwidth);
  46.       form.setObject(3, "<SPIN>Male,Female");
  47.       form.setObject(4, "<COMBO>Bachelor,Master,Doctor");
  48.       form.setObject(6, "<CHOICE>MTS,DMTS,Superviser,DH");
  49.    }
  50.    
  51.    private Form form;
  52. }
  53.